/**
* @File           :   example.go
* @Time           :   2022/05/10
* @Author         :   Mz100
* @Description    :   models 标准例子
 */

package models

import (
	"github.com/google/uuid"
)

type ExampleModel struct {
	BaseModel
	UUID   uuid.UUID `json:"uuid" gorm:"comment:卡UUID"`
	Name   string    `json:"name" gorm:"名字"`
	UserId int       `json:"user_id" gorm:"外键ID"`
	User   UserModel `json:"user"`
}

func (ExampleModel) TableName() string {
	return "example"
}
